package marina;

public class J05Ex33Patterns {
	public static void main(String[] args) {

		System.out.println("======================패턴1.======================");

		for (int i = 0; i < 7; i += 2) {
			for (int k = 5; k > i; k -= 2)
				System.out.print(" ");
			for (int j = 0; j <= i; j++) {
				System.out.print("+");
			}
			System.out.print("\n");
		}

		for (int i = 6; i > 0; i -= 2) {
			for (int k = 7; k > i; k -= 2)
				System.out.print(" ");

			for (int j = 2; j <= i; j++) {
				System.out.print("+");
			}
			System.out.print("\n");
		}

		System.out.println("======================패턴2.======================");

		for (int i = 0; i < 5; i += 1) {
			for (int j = 0; j <= i; j++) {
				System.out.print("+");
			}
			System.out.print("\n");
		}

		for (int i = 5; i > 0; i -= 1) {
			for (int j = 2; j <= i; j++) {
				System.out.print("+");
			}
			System.out.print("\n");
		}

		System.out.println("======================패턴3.======================");

		for (int i = 0; i < 5; i += 2) {
			for (int k = 1; k <= 7; k++) {
				System.out.print(" ");
			}
			for (int j = 0; j <= i; j++) {
				System.out.print("+");
			}
			System.out.print("\n");
		}
		for (int i = 1; i <= 13; i++) {
			System.out.print("+");
		}
		System.out.print("\n");
		for (int i = 6; i > 0; i -= 2) {
			for (int k = 1; k <= 7; k++) {
				System.out.print(" ");
			}
			for (int j = 2; j <= i; j++) {
				System.out.print("+");
			}
			System.out.print("\n");
		}
	}
}
